package day14;

/**
 * @author oldliu
 * @since 1.0
 */
public class ForTest4 {
    public static void main(String[] args) {
        // {} 用；代替
        //for (int i = 1; i <= 100;  System.out.println(i),i++);
//        for (int i = 1; i <= 100;  i++){
//            System.out.println(i);
//        }
        String []a={"小王","老吴","小张","laosong","小马"};
        for(String s:a)
        {
            System.out.println("xxxx");
            System.out.println(s);//s就是循环的每一个值
            System.out.println("yyyy");
        }
//        for(int i=0;i<a.length;i++){
//            String s=a[i];
//            System.out.println("第"+i+"个:"+s);
//        }
    }
}
